Allows to configure a object-relational unilateral mapping, so that a given SQL expression controls the value of an entity property.

Namespace: Keystone.Carbonite.Diamant
Assembly: Keystone.Carbonite.Diamant (in Keystone.Carbonite.Diamant.dll)

protected TableExpressionMapping Expression( 
string As
Expression<Func<TEntity, object>> With 
)
This language is not supported or no code example is available.

Parameters

As

Type: string

The SQL expression.

With

Type: Expression<Func<TEntity, object>>

The entity object property expressed in configuration first style.

Return Value

A TableExpressionMapping.
Exception type Condition

ArgumentException

If the given entity property is not found.

Windows, Windows Server, OS X, macOS, iOS, tvOS, Android, Linux, AWS, Azure

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 4.6

Others

Xamarin, Mono